@model IQueryable<AccountView>

<div class="col">
    <div class="widget-box">
        <div class="widget-header">
            <span class="icon fa fa-th"></span>
            <h5>@Headers.Accounts</h5>
            <div class="widget-header-buttons">
                <authorize action="Create">
                    <a asp-action="Create" class="btn">
                        <span class="far fa-file"></span><span class="text">@Actions.Create</span>
                    </a>
                </authorize>
            </div>
        </div>
        <div class="widget-content">
            @(Html
                .Grid(Model)
                .Build(columns =>
                {
                    columns.AddActionLink("Details", "fa fa-info");
                    columns.AddActionLink("Edit", "fa fa-pencil-alt");

                    columns.AddProperty(model => model.Username);
                    columns.AddProperty(model => model.Email);
                    columns.AddProperty(model => model.RoleTitle);
                })
                .ApplyDefaults()
            )
        </div>
    </div>
</div>
